package edu.zut.exceptionPra;

//自定义异常类   直接继承Exception / RuntimeException
//使用需要结合throw关键字    手动抛自定义异常
public class MyException extends Exception {

    //自定义异常信息
    private String msg;

    public MyException(String msg){
        super(msg);
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }




}
